SEVER=server
CLIENT=client
CC=g++

all:$(SEVER) $(CLIENT)
$(SEVER):tcpserver.cc
	$(CC) -o $@ $^ -lpthread -std=c++11
$(CLIENT):tcpclient.cc
	$(CC) -o $@ $^ -std=c++11
	
.PHONY:clean
clean:
	rm -f $(SEVER) $(CLIENT)
